package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_use_goods_change_earn", desc = "道具使用-赚速变化", autoSave = true)
public class LogUseGoodsChangeEarn {

    @FieldTypeAnnotation(desc = "用户ID")
    private long userId;

    @FieldTypeAnnotation(desc = "道具Id")
    private int goodsId;

    @FieldTypeAnnotation(desc = "数量")
    private long num;

    @FieldTypeAnnotation(desc = "变更前赚速")
    private String beforeEarn;

    @FieldTypeAnnotation(desc = "变更后赚速")
    private String afterEarn;

    @FieldTypeAnnotation(desc = "日期")
    private Date logTime;

    public LogUseGoodsChangeEarn(long userId, int goodsId, long num, String beforeEarn, String afterEarn) {
        this.userId = userId;
        this.goodsId = goodsId;
        this.num = num;
        this.beforeEarn = beforeEarn;
        this.afterEarn = afterEarn;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getBeforeEarn() {
        return beforeEarn;
    }

    public void setBeforeEarn(String beforeEarn) {
        this.beforeEarn = beforeEarn;
    }

    public String getAfterEarn() {
        return afterEarn;
    }

    public void setAfterEarn(String afterEarn) {
        this.afterEarn = afterEarn;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
